	<form method="post" name="frm_SelRail" onSubmit="return false;" action="{$apm.baseurl}search/{$form_act}">
			{if $block_title}<h2 class="searchTitle">{$block_title}</h2>{/if}
			{if $block_text}<p class="txt02">{$block_text}</p>{/if}
			{if $SelFlag != 1}<p class="searchAttTxt01">※10ヵ所まで選択できます。</p>{/if}

{if $SelFlag <> 1 && $SelFlag <> 2}
		<link href="/css/shop/shop.css" type="text/css" rel="stylesheet" media="screen, projection, tv, print">
		{* 都道府県毎にループ *}
		{foreach from=$Mapping key=prefCd item=pref}

		<!-- prefBlock -->
		<div class="prefBlock">
			<div class="h2Block">
				<h2><span>{$pref.PrefName}</span><label class="allSelect"></h2>
			</div>
						<!-- selectCategoryAnchor -->
						<div id="selectCategoryAnchor">
							<!-- innerBlock -->
							<div class="innerBlock01">
								<div class="innerBlock02">
									<ul>
	{* アンカー *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
										<li><a href="#{$prefCd}{$ensenKbn.EnsenKbn}">{$ensenKbn.EnsenKbnName}</a></li>
	{/foreach}
									</ul>
								</div>
							</div>
							<!-- /innerBlock -->
						</div>

	{* 沿線区分毎にループ *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
						<!-- selectDetailBlock01 -->
						<div id="{$prefCd}{$ensenKbn.EnsenKbn}" class="selectDetailBlock01">
							<p class="title">{$ensenKbn.EnsenKbnName}</p>
							<!-- innerBlock01 -->
							<div class="innerBlock01">
								<!-- innerBlock02 -->
								<div class="innerBlock02">

		{* 沿線毎にループ *}
		{foreach from=$ensenKbn.RailList item=rail name=railLoop}
		    {if $smarty.foreach.railLoop.iteration % 3 == 1}
		    	{if $smarty.foreach.railLoop.iteration + 2 >= $smarty.foreach.railLoop.total}
									<ul class="last">
			    {else}
									<ul>
			    {/if}
		    {/if}

		    {if $rail.TENPO_COUNT == 0}
		    	{assign var="disabled" value=" disabled"}
		    {else}
		    	{assign var="disabled" value=""}
		    {/if}
										<li>
											{if $rail.STATIC_URL == ""}<label>{/if}
											<input type='{if $SelFlag == 1}radio{else}checkbox{/if}' id="{$rail.TODOUFUKEN_CD}" name='RailCd[]' value='{$rail.T57_ENSEN_SHIKUCHOUSON_CD}'{if $rail.DATACNT == 0}disabled{/if}{$rail.checked}>
											{if $rail.STATIC_URL != "" && $rail.DATACNT > 0}<a href="{$rail.STATIC_URL}">{/if}{$rail.ENSEN_NAME}{if $rail.DATACNT>=0}({$rail.DATACNT}件){/if}{if $rail.STATIC_URL != "" && $rail.DATACNT > 0}</a>{/if}
											{if $rail.STATIC_URL == ""}</label>{/if}
										</li>

			{if $smarty.foreach.railLoop.iteration % 3 == 0 || $smarty.foreach.railLoop.last}
									</ul>
			{/if}

		{/foreach}
								</div>
								<!-- /innerBlock02 -->
							</div>
							<!-- /innerBlock01 -->
						</div>
						<!-- /selectDetailBlock01 -->
			{if $SelEkiNull <> 1}
				<p class="moreBtn"><a href="javascript:SelEnsen()"><img src="/images/search/common/btn_more_02.jpg" alt="さらに駅を選択" width="158" height="35" class="rollImg" /></a></p>
			{/if}
	{/foreach}

		</div>
		<!-- /prefBlock -->
{/foreach}
{else}
			<!-- selectCategoryAnchor -->
			<div id="selectCategoryAnchor">
				<!-- innerBlock01 -->
				<div class="innerBlock01">
					<!-- innerBlock02 -->
					<div class="innerBlock02">
						<ul>
						{foreach from=$Mapping item=v name="kbnLoop"}
							<li><a href="#Line{$smarty.foreach.kbnLoop.iteration}">{$v.ENSEN_KUBUN}</a></li>
						{/foreach}
						</ul>
					</div>
				</div>
				<!-- /innerBlock01 -->
			</div>
			<!-- /selectCategoryAnchor -->
			<!-- selectDetailBlock02 -->
			{foreach from=$Mapping item=v name="kbnLoop"}
			<div  class="selectDetailBlock02"id="Line{$smarty.foreach.kbnLoop.iteration}">
				<p class="title">{$v.ENSEN_KUBUN}</p>
				<!-- innerBlock01 -->
				<div  class="innerBlock01">
					<!-- innerBlock02 -->
					<div  class="innerBlock02">
					{assign var="cnt" value=$v.ENSEN_DATA|@count}
					{foreach from=$v.ENSEN_DATA item=ensen name="ensenLoop"}
						{if $smarty.foreach.ensenLoop.iteration % 3 == 1}
							{if $smarty.foreach.ensenLoop.iteration+3 <= $cnt}
							<ul>
							{else}
							<ul class="last">
							{/if}
						{/if}
							{* SelFlag == 1の場合、単一選択(radioボタン) *}
							<li>
							{if $ensen.STATIC_URL == "" || $ensen.DATACNT == 0}<label>{/if}
								<input name="RailCd[]"
								       type="{if $SelFlag == 1}radio{else}checkbox{/if}"
								       id="selectRail{$ensen.T57_ENSEN_SHIKUCHOUSON_CD}"
								       value="{$ensen.T57_ENSEN_SHIKUCHOUSON_CD}" {if $ensen.DATACNT == 0}disabled{/if}
								       {foreach from=$research_data.ReRailCd key="key" item="rerailcd" name="loopName"}
								           {if $rerailcd == $ensen.T57_ENSEN_SHIKUCHOUSON_CD}
								           checked
								           {/if}
								       {/foreach} />
							{if $ensen.STATIC_URL != "" && $ensen.DATACNT != 0}<a href="{$ensen.STATIC_URL}">{/if}
								{$ensen.T57_ENSEN_SHIKUCHOUSON_NAME}({$ensen.DATACNT}件)
							{if $ensen.STATIC_URL != "" && $ensen.DATACNT != 0}</a>{else}</label>{/if}
							</li>
						{if $smarty.foreach.ensenLoop.iteration % 3 == 0 || $smarty.foreach.ensenLoop.last}
						</ul>
						{/if}
					{/foreach}
					</div>
					<!-- /innerBlock02 -->
				</div>
				<!-- /innerBlock01 -->
			</div>
			{/foreach}
{/if}
			<!-- /selectDetailBlock02 -->
				{if $SelFlag == 1}
					<!-- searchToResult02 -->
					<div id="searchToResult02">
						<!-- innerBlock01 -->
						<div class="innerBlock01">
							<div class="innerBlock02">
								<div class="innerBlock03">
									<p class="btn">
										<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onClick="SelEnsen_radio_selsrh('{$apm.baseurl}search/{$form_act}', '2', 'true')" />
									</p>
								</div>
							</div>
						</div>
						<!-- /innerBlock01 -->
					</div>
					<!-- /searchToResult02 -->
				{else}
					<!-- searchToResult -->
					<div id="searchToResult">
						<!-- innerBlock01 -->
						<div class="innerBlock01">
							<!-- innerBlock02 -->
							<div class="innerBlock02">
								<!-- innerBlock03 -->
								<div class="innerBlock03">
									<dl>
										<dt>検索結果表示：</dt>
										<dd>
											<ul>
											
											{*
												<li>
													<label>
													<input name="dispCount" type="radio" id="radio" value="20" checked="checked" />
														20件ずつ</label>
												</li>
												<li>
													<label>
													<input type="radio" name="dispCount" id="radio2" value="40" />
														40件ずつ</label>
												</li>
												<li class="last">
													<label>
													<input type="radio" name="dispCount" id="radio3" value="60" />
														60件ずつ</label>
												</li>
											*}
												{* 2010/12/28 10件毎表示対応 *}
												<li>
													<label>
													<input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
														10件ずつ</label>
												</li>
												<li>
													<label>
													<input type="radio" name="dispCount" id="radio2" value="20" />
														20件ずつ</label>
												</li>
												<li class="last">
													<label>
													<input type="radio" name="dispCount" id="radio3" value="30" />
														30件ずつ</label>
												</li>
												
											</ul>
										</dd>
									</dl>
									<p class="btn">
										<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onClick="SelEnsenKensaku('{$apm.baseurl}rstobi/rstobi');" />
									</p>
								</div>
							</div>
							<!-- /innerBlock02 -->
						</div>
						<!-- /innerBlock01 -->
					</div>
					<!-- /searchToResult -->
				{/if}
		<div id="hiddenval">
		{$hiddenTag}
		</div>
	</form>
